﻿Public Class Profile
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Request.Params("UserName") = User.Identity.Name Then
            bn_EditProfile1.Visible = True
        Else
            bn_EditProfile1.Visible = False
        End If
    End Sub

    Protected Sub bn_EditProfile1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles bn_EditProfile1.Click
        Response.Redirect("ProfileRegister.aspx?UserName=" & User.Identity.Name)
    End Sub
End Class